package com.deer.wms.base.system.dao;

import com.deer.wms.base.system.model.Pack.PackMaster;
import com.deer.wms.base.system.model.Pack.PackMasterCriteria;
import com.deer.wms.base.system.model.Pack.PackMasterDto;
import com.deer.wms.project.root.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PackMasterMapper extends SuperMapper<PackMaster> {

    List<PackMasterDto> findList(PackMasterCriteria criteria);

    /**
     * 按照包装编码查询
     * @param packCode 包装编码
     * @return List<PackMasterDto>
     */
    List<PackMasterDto> findByPackCode(@Param("packCode")String packCode);
    List<PackMasterDto> findByPackName(@Param("packName")String packName);

    void  deleteByCode(@Param("packCode")String packCode);

}